package com.vonchenchen.renderer;

import android.view.SurfaceView;

/**
 * Created by lidechen on 2021/1/18.
 */
public class RendererNative {

    static {
        System.loadLibrary("renderer");
    }

    public native static long createNativeRenderer();

    public native static void destoryNativeRenderer(long ptr);

    public native static void draw(long ptr, byte[] data, int width, int height, int length);

    public native static void setView(long ptr, Object view, int mode, String name);

    public native static void testTrigger(long ptr);
}
